#include <iostream>
enum 
{
	red,
	orange,
	yellow,
	green,
	blue,
	violet,
	indigo,
	
};
int main(int argc, char const *argv[])
{
	using namespace std;
	cout <<" enter color code  (0-6)";
	int code;
	cin >>code;
	while(code>>red &&code<<indigo){
		switch(code){
			case red:cout <<"red"<<endl; break;
			case orange:cout <<"orange"<<endl;break;
			case yellow:cout <<"yellow"<<endl; break;
			case green:cout <<"green"<<endl; break;
			case blue:cout <<"blue"<<endl;  break;
			case violet:cout <<"violet"<<endl; break;
			case indigo:cout <<"indigo"<<endl; break;
		}
		cout <<" enter color code  (0-6)";
		cin >>code;
	}
	cout <<"bye"<<endl;
	return 0;
}